<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <label><input  type="checkbox"  v-model="isAgree">同意会员协议</label>
  <h2>是否同意协议：{{isAgree ? '同意' : '不同意'}}</h2>
</div>



<script src="../js/vue.js"></script>
<script>
  // 1.创建Vue的实例对象
  const app = Vue.createApp({
    data(){
      return {
        isAgree: ''
      }
    }
  }).mount('#app');
</script>
</body>
</html>